$(document).ready(function() {
	var openId = getQueryString('openId');
	var sys = getQueryString('sys');
	var coordX = getQueryString('coordX');
	var coordY = getQueryString('coordY');
//	alert(coordX)
//	alert(coordY)
	console.log('openId', openId)
	console.log('coordX', coordX)
	console.log('coordY', coordY)

	$('#weishengjian').on('click', function() {
		var weishengjia = {
			x: 13028234.045,
			y: 4737040.130000001,
			groupID: 1
		}
		var weishengjiaStr = JSON.stringify(weishengjia);
		window.location.href = 'pdrLocationIos0521.html?mapPointAddress=' + weishengjiaStr + '&openId=' + openId + '&sys=' + sys + '&aaa=' + Math.random();
		
//		var tuijianluxian = [{
//				x: 13028224.078,
//				y: 4737027.195,
//				groupID: 1
//			},
//			{
//				x: 13028224.115,
//				y: 4737010.959,
//				groupID: 1
//			}
//		]
//		var tuijianluxianStr = JSON.stringify(tuijianluxian);
//		window.location.href = 'pdrLocationIos0521.html?tuijianluxian=' + tuijianluxianStr + '&openId=' + openId + '&sys=' + sys + '&aaa=' + Math.random();
	})
	$('#tuijianluxian').on('click', function() {
		var tuijianluxian = [{
				x: 13028224.078,
				y: 4737027.195,
				groupID: 1
			},
			{
				x: 13028224.115,
				y: 4737010.959,
				groupID: 1
			}
		]
		var tuijianluxianStr = JSON.stringify(tuijianluxian);
		window.location.href = 'pdrLocationIos0521.html?tuijianluxian=' + tuijianluxianStr + '&openId=' + openId + '&sys=' + sys + '&aaa=' + Math.random();
	})

	$('#goMap').on('click', function() {
		window.location.href = 'pdrLocationIos0521.html?mapPointAddress=' + '&openId=' + openId + '&sys=' + sys + '&aaa=' + Math.random() + '&coordX=' + coordX + '&coordY=' + coordY;
	})
})